﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ED.Model.Response
{
    public class Root
    {
        public List<MenuRouter> Roots =new List<MenuRouter>();
    }

    /// <summary>
    /// 路由菜单
    /// </summary>
    public class MenuRouter
    {
        /// <summary>
        /// 
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Meta Meta { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<ChildrenItem> Children { get; set; } =new List<ChildrenItem>();
    }

    public class ChildrenItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Meta Meta { get; set; }
    }

    public class Meta
    {
        /// <summary>
        /// 页面权限
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> Roles { get; set; } =new List<string>();

        public string Icon { get; set; }
        public int Rank { get; set; }
        public List<string> Auths { get; set; } = new List<string>();

        public bool ShowLink { get; set; }
    }
}
